Intelligent Feed Switch

ABSTRACT

Various techniques are disclosed for offloading the processing of data packets. For example, incoming data packets can be processed through an offload processor to generate a new stream of outgoing data packets that organize data from the data packets in a manner different than the incoming data packets. Furthermore, in an exemplary embodiment, the offloaded processing can be resident in an intelligent switch, such as an intelligent switch upstream or downstream from an electronic trading platform.

CROSS-REFERENCE AND PRIORITY CLAIM TO RELATED PATENT APPLICATIONS

This patent application is a divisional of pending U.S. patent application Ser. No. 14/195,550, filed Mar. 3, 2014, and entitled “Intelligent Feed Switch”, and where the '550 patent application (1) claims priority to U.S. provisional patent application 61/790,254, filed Mar. 15, 2013, and entitled “Offload Processing of Data Packets”, (2) is a continuation of PCT patent application PCT/US13/33889, filed Mar. 26, 2013, and entitled “Offload Processing of Data Packets”, which claims priority to (i) U.S. provisional patent application 61/616,181, filed Mar. 27, 2012, and entitled “Offload Processing of Data Packets Containing Financial Market Data” and (ii) U.S. provisional patent application 61/790,254, filed Mar. 15, 2013, and entitled “Offload Processing of Data Packets”, and (3) is a continuation-in-part of U.S. patent application Ser. No. 13/833,098, filed Mar. 15, 2013, and entitled “Offload Processing of Data Packets Containing Financial Market Data”, which claims priority to U.S. provisional patent application 61/616,181, filed Mar. 27, 2012, and entitled “Offload Processing of Data Packets Containing Financial Market Data”, the entire disclosures of each of which are incorporated herein by reference.

U.S. patent application Ser. No. 14/195,550 is also related to (1) U.S. patent application Ser. No. 14/195,462, filed Mar. 3, 2014, and entitled “Offload Processing of Data Packets”, (2) U.S. patent application Ser. No. 14/195,510, filed Mar. 3, 2014, and entitled “Offload Processing of Data Packets Containing Financial Market Data”, and (3) U.S. patent application Ser. No. 14/195,531, filed Mar. 3, 2014, and entitled “Intelligent Switch for Processing Financial Market Data”.

INTRODUCTION

Accelerated data processing, particularly for data communicated over networks, is an ever present need in the art. This need is acutely present in the processing of financial market data to support the trading of financial instruments. However, it should be understood that the need for accelerated data processing is also present for a wide variety of other applications.

The process of trading financial instruments may be viewed broadly as proceeding through a cycle as shown in FIG. 1. At the top of the cycle is the exchange which is responsible for matching up offers to buy and sell financial instruments. Exchanges disseminate market information, such as the appearance of new buy/sell offers and trade transactions, as streams of events known as market data feeds. Trading firms receive market data from the various exchanges upon which they trade. Note that many traders manage diverse portfolios of instruments requiring them to monitor the state of multiple exchanges. Utilizing the data received from the exchange feeds, trading systems make trading decisions and issue buy/sell orders to the financial exchanges. Orders flow into the exchange where they are inserted into a sorted “book” of orders, triggering the publication of one or more events on the market data feeds.

In an attempt to promptly deliver financial information to interested parties such as traders, a variety of electronic trading platforms have been developed for the purpose of ostensible “real time” delivery of streaming bid, offer, and trade information for financial instruments to traders. FIG. 2 illustrates an exemplary platform that is currently known in the art. As shown in FIG. 2, the electronic trading platform 200 comprises a plurality of functional units 202 that are configured to carry out data processing operations such as the ones depicted in units 202, whereby traders at workstations 204 have access to financial data of interest and whereby trade information can be sent to various exchanges or other outside systems via output path 210. The purpose and details of the functions performed by functional units 202 are well-known in the art. A stream 206 of financial data arrives at the system 200 from an external source such as the exchanges themselves (e.g., NYSE, NASDAQ, etc.) over private data communication lines or from extranet providers such as Savvis or BT Radians. The financial data source stream 206 comprises a series of messages that individually represent a new offer to buy or sell a financial instrument, an indication of a completed sale of a financial instrument, notifications of corrections to previously-reported sales of a financial instrument, administrative messages related to such transactions, and the like. As used herein, a “financial instrument” refers to a contract representing equity ownership, debt or credit, typically in relation to a corporate or governmental entity, wherein the contract is saleable. Examples of “financial instruments” include stocks, bonds, commodities, currency traded on currency markets, etc. but would not include cash or checks in the sense of how those items are used outside financial trading markets (i.e., the purchase of groceries at a grocery store using cash or check would not be covered by the term “financial instrument” as used herein; similarly, the withdrawal of $100 in cash from an Automatic Teller Machine using a debit card would not be covered by the term “financial instrument” as used herein). Functional units 202 of the system then operate on stream 206 or data derived therefrom to carry out a variety of financial processing tasks. As used herein, the term “financial market data” refers to the data contained in or derived from a series of messages that individually represent a new offer to buy or sell a financial instrument, an indication of a completed sale of a financial instrument, notifications of corrections to previously-reported sales of a financial instrument, administrative messages related to such transactions, and the like. The term “financial market source data” refers to a feed of financial market data directly from a data source such as an exchange itself or a third party provider (e.g., a Savvis or BT Radianz provider). The term “financial market secondary data” refers to financial market data that has been derived from financial market source data, such as data produced by a feed compression operation, a feed handling operation, an option pricing operation, etc.

Financial data applications require fast access to large volumes of financial market data, and latency is an ever present technical problem in need of ever evolving solutions in the field of processing financial market data. As depicted in FIG. 2, the consumption, normalization, aggregation, and distribution of financial market data are key elements in a system that processes financial market data. For a broad spectrum of applications, platform architects seek to minimize the latency of market data processing and distribution, while minimizing the space and power required to host the market data processing and distribution elements. As described in the following patents and patent application, significant performance, efficiency, and scalability improvements can be achieved by leveraging reconfigurable hardware devices and other types of co-processors to integrate and consolidate market data consumption, normalization, aggregation, enrichment, and distribution functions: U.S. Pat. Nos. 7,840,482, 7,921,046, and 7,954,114 as well as the following published patent applications: U.S. Pat. App. Pub. 2007/0174841, U.S. Pat. App. Pub. 2007/0294157, U.S. Pat. App. Pub. 2008/0243675, U.S. Pat. App. Pub. 2009/0182683, U.S. Pat. App. Pub. 2009/0287628, U.S. Pat. App. Pub. 2011/0040701, U.S. Pat. App. Pub. 2011/0178911, U.S. Pat. App. Pub. 2011/0178912, U.S. Pat. App. Pub. 2011/0178917, U.S. Pat. App. Pub. 2011/0178918, U.S. Pat. App. Pub. 2011/0178919, U.S. Pat. App. Pub. 2011/0178957, U.S. Pat. App. Pub. 2011/0179050, U.S. Pat. App. Pub. 2011/0184844, WO Pub. WO 2010/077829, U.S. Pat. App. Pub. 2012/0246052, and U.S. Pat. App. Ser. No. 61/570,670, entitled “Method and Apparatus for Low Latency Data Distribution”, filed Dec. 14, 2011, the entire disclosures of each of which are incorporated herein by reference. These concepts can be extended to various market data processing tasks as described in the above-referenced and incorporated patents and patent applications. Similarly, the above-referenced and incorporated Pat. App. Ser. No. 61/570,670 demonstrates how the systems responsible for the distribution of real-time financial data can be greatly enhanced via the use of novel communication protocols implemented in reconfigurable hardware devices and other types of co-processors.

In accordance with various embodiments disclosed herein, the inventors further disclose various methods, apparatuses, and systems for offloading the processing of data packets. In exemplary embodiments, the data packets can be from feeds such as social network data feeds, content aggregation feeds, and machine-readable news feeds.

In additional exemplary embodiments, the data packets can contain financial market data. In exemplary embodiments, various processing tasks are offloaded from an electronic trading platform to one or more processors upstream or downstream from the electronic trading platform. It should be understood that the term upstream in this context is meant to identify a directional flow with respect to data that is moving to an electronic trading platform, in which case an offload processor upstream from the electronic trading platform would process financial market data flowing toward the electronic trading platform. Similarly, in this context downstream is meant to identify a directional flow with respect to data that is moving away from an electronic trading platform, in which case an offload processor downstream from the electronic trading platform would process financial market data flowing out of the electronic trading platform.

In some embodiments, the offloaded processing can be moved into a data distribution network, such as the data distribution network for financial market data. For example, one or more of the offloaded financial market data processing tasks described herein can be implemented in one or more network elements of the data distribution network, such as a switch within the data distribution network. Disclosed herein are exemplary embodiments where a number of market data consumption, normalization, aggregation, enrichment, and distribution functions can be embedded within the elements that comprise the market data feed network 214. Conceptually, these embodiments offload processing tasks typically performed by downstream processing elements 202 such as feed handlers and virtual order books. The inventors also disclose a number of market data distribution functions that can be embedded within the network elements that comprise the financial application data network 208. Conceptually, these embodiments effectively offload processing tasks typically performed by ticker plants, messaging middleware, and downstream applications. Offloading these tasks from traditional platform components and embedding them in network elements may obviate some platform components, improve the performance of some components, reduce the total amount of space and power required by the platform, achieve higher system throughput, and deliver lower latency market data to consuming applications.

These and other features and advantages of the present invention will be apparent to those having ordinary skill in the art upon review of the teachings in the following description and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an exemplary process cycle for trading financial instruments.

FIG. 2 illustrates an exemplary electronic trading platform.

FIGS. 3-6 illustrate exemplary embodiments for offload processors that provide repackaging functionality.

FIG. 7 illustrates an exemplary system where an offload processor is deployed upstream from one or more electronic trading platform(s).

FIG. 8 illustrates an exemplary system where an intelligent feed switch is positioned within the market data feed network of an electronic trading platform.

FIG. 9 illustrates an exemplary system where conventional switches are used to aggregate financial market data feeds for delivery to an intelligent feed switch.

FIG. 10 illustrates an exemplary system where conventional switches are used to aggregate financial market data feeds for delivery to multiple intelligent feed switches.

FIG. 11 depicts an exemplary electronic trading platform with an intelligent feed switch deployed in the market data network.

FIG. 12 illustrates the system of FIG. 11 including a logical diagram of functions performed by a typical feed handler in an electronic trading platform.

FIG. 13 illustrates the system of FIG. 11 but where several functions are offloaded from the feed handler to the intelligent feed switch.

FIG. 14 illustrates an exemplary electronic trading platform that includes one or more ticker plant components.

FIG. 15 illustrates the system of FIG. 14 but where several functions are offloaded from a ticker plant to the intelligent feed switch.

FIG. 16 illustrates an exemplary system where latency-sensitive trading applications consume data directly from an intelligent feed switch.

FIG. 17 illustrates an example of redundant feed arbitration.

FIG. 18 illustrates an example of a line arbitration offload engine.

FIG. 19 illustrates an example of a packet mapping offload engine.

FIG. 20 illustrates an exemplary processing module configured to perform symbol-routing and repackaging.

FIG. 21 illustrates an exemplary intelligent feed switch that provides multiple ports of 10 Gigabit Ethernet connectivity.

FIG. 22 illustrates an exemplary intelligent feed switch wherein the switch device is replaced by another FPGA device with a dedicated memory cache.

FIG. 23 illustrates an exemplary intelligent feed switch wherein a single FPGA device is utilized.

FIG. 24 illustrates an exemplary intelligent distribution switch positioned downstream of market data normalization components in an electronic trading platform.

FIG. 25 illustrates an exemplary intelligent distribution switch that hosts one or more distribution functions.

FIG. 26 illustrates an exemplary system where a feed handler is configured terminate a TCP connection.

FIG. 27 illustrates an exemplary intelligent feed switch that is configured to implement TCP termination logic.

FIG. 28 illustrates an exemplary engine that provides symbol and order mapping.

FIGS. 29-32 illustrate exemplary embodiments for offload processors that provide repackaging functionality with respect to nonfinancial data.

FIG. 33 illustrates an exemplary system where an offload processor is deployed upstream from multiple data consumers.

FIG. 34 depicts an exemplary intelligent feed switch for processing nonfinancial data.

FIG. 35 depicts an exemplary process flow that can be implemented by the intelligent feed switch of FIG. 34.

DETAILED DESCRIPTION A. Offload Processor:

Thus, in an exemplary embodiment, the inventors disclose that an offload processor can be configured to process incoming data packets, where each of at least a plurality of the incoming data packets contain a plurality of financial market data messages, and wherein the financial market data messages comprise a plurality of data fields describing financial market data for a plurality of financial instruments. Thus, the payload of each incoming data packet can comprise one or more financial market data messages. Such an offload processor can filter and repackage the financial market data into outgoing data packets where the financial market data that is grouped into outgoing data packets is grouped using a criterion different than the criterion upon which financial market data was grouped into the incoming data packets. This permits the offload processor to serve a valuable role in generating a new set of customized outgoing data packets from incoming data packets. In various exemplary embodiments of such an offload processor, the offload processor can alleviate the processing burden on the downstream electronic trading platform(s).

Examples of such an offload processor are shown in FIGS. 3-6. FIG. 3 depicts an exemplary offload processor 300 that is configured to receive as an input a consolidated stream of incoming data packets from different financial markets. As shown in FIG. 3, each incoming data packet has a payload that contains multiple financial market data messages from the same financial market. Thus, a plurality of financial market data messages from the feed for Financial Market 1 (e.g., NYSE) are combined in the same packet (e.g., where financial market data message FMDM1(Mkt 1) is a new offer to buy stock for Company A from the NYSE, FMDM2(Mkt 1) is a new offer to sell stock for Company B from the NYSE, and where FMDM3(Mkt 1) is a notification of a completed trade on stock for Company C from the NYSE), while a plurality of financial market data messages from the feed for Financial Market 2 (e.g., NASDAQ) are combined in the same packet, and so on. The offload processor 300 performs financial market data filtering and repackaging between incoming and outgoing data packets such that the outgoing financial market data packets contain financial market data messages that are organized using a different criterion. Thus, the offload processor filters and sorts the financial market data from the different markets by a criterion such as which downstream data consumers have expressed an interest in such financial market data. In this fashion, the offload processor 300 can mix payload portions of incoming data packets on a criterion-specific basis to generate outgoing data packets with newly organized payloads. For example, data consumer A may have an interest in all new messages relating a particular set of financial instruments (e.g., IBM stock, Apple stock, etc.) regardless of which market served as the source of the messages on such instruments. Another data consumer, Consumer B, may have similar interests in a different set of financial instruments. In such a case, the offload processor can be configured to re-group the financial market data into the outgoing data packets around the interests of particular downstream consumers. Thus, FIG. 3 also shows outgoing data packets that are consumer-specific. As can be seen, the payloads of these consumer-specific data packets comprise financial market data messages from different markets that arrived in different incoming data packets.

Exemplary processing pipelines that can be employed by the offload processor to provide such sorting and repackaging functions are described below in connection with FIGS. 13, 15, and 20. In another exemplary embodiment, an offload processor can be configured to perform packet mapping functions on incoming data packets from various financial market data feeds.

FIG. 4 depicts another exemplary embodiment of an offload processor 300 that provides repackaging functionality. In the example of FIG. 4, the offload processor receives a plurality of streams of incoming data packets, where each stream may be market-specific (e.g., an input stream of data packets from the NYSE on a first port and an input stream of data packets from NASDAQ on a second port). The offload processor 300 of FIG. 4 can then repackage the financial market data in these incoming data packets into outgoing data packets as previously discussed.

FIG. 5 depicts another exemplary embodiment of an offload processor 300 that provides repackaging functionality. In the example of FIG. 5, the offload processor produces multiple output streams of outgoing data packets, where each output stream may be criterion-specific (e.g., an output stream of data packets destined for Consumer A from a first port and an output stream of data packets destined for Consumer B from a second port, and so on). The stream of incoming data packets can be a consolidated stream as described in connection with FIG. 3.

FIG. 6 depicts another exemplary embodiment of an offload processor 300 that provides repackaging functionality. In the example of FIG. 6, the offload processor produces multiple output streams of outgoing data packets from multiple input streams of incoming data packets, where the input streams can be like those shown in FIG. 4 while the output streams can be like those shown in FIG. 5.

The output streams produced by the offload processor in FIGS. 3, 4, 5, and 6 may be delivered by a unicast protocol (a unique stream for each consumer) or a multicast protocol (multiple consumers of the same stream). In the case of a unicast protocol, the consumer-specific output packets would contain the address of the targeted consumer. In the case of a multicast protocol, the consumer-specific output packets would contain the address of the targeted group of consumers (e.g. a UDP multicast address). It should be understood that multiple output streams, unicast or multicast, may be carried on a single network link. The number of network links used to carry the output streams produced by the offload processor may be selected independently of the number of unique output streams.

The offload processor 300 can take any of a number of forms, including one or more general purpose processors (GPPs), reconfigurable logic devices (such as field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), graphics processing units (GPUs), and chip multiprocessors (CMPs), as well as combinations thereof.

As used herein, the term “general-purpose processor” (or GPP) refers to a hardware device having a fixed form and whose functionality is variable, wherein this variable functionality is defined by fetching instructions and executing those instructions, of which a conventional central processing unit (CPU) is a common example. Exemplary embodiments of GPPs include an Intel Xeon processor and an AMD Opteron processor. As used herein, the term “reconfigurable logic” refers to any logic technology whose form and function can be significantly altered (i.e., reconfigured) in the field post-manufacture. This is to be contrasted with a GPP, whose function can change post-manufacture, but whose form is fixed at manufacture. Furthermore, as used herein, the term “software” refers to data processing functionality that is deployed on a GPP or other processing devices, wherein software cannot be used to change or define the form of the device on which it is loaded, while the term “firmware”, as used herein, refers to data processing functionality that is deployed on reconfigurable logic or other processing devices, wherein firmware may be used to change or define the form of the device on which it is loaded.

Thus, in embodiments where the offload processor 300 comprises a reconfigurable logic device such as an FPGA, hardware logic will be present on the device that permits fine-grained parallelism with respect to the different operations that the offload processor performs, thereby providing the offload processor with the ability to operate at hardware processing speeds that are orders of magnitude faster than would be possible through software execution on a GPP. Moreover, by leveraging such fine-grained parallelism, processing tasks can be intelligently engineered into processing pipelines deployed as firmware in the hardware logic on the FPGA. With such a pipeline, downstream pipeline modules can perform a processing task on data that was previously processed by upstream pipelined modules while the upstream pipeline modules are simultaneously performing other processing tasks on new data, thereby providing tremendous throughput gains. Furthermore, other types of offload processors that provide parallelized processing capabilities can also contribute to improved latency and throughput.

FIG. 7 depicts an exemplary system where the offload processor 300 is deployed upstream from one or more electronic trading platform(s) (ETP(s)) 700. Each ETP 700 may include one or more data consumers within it, and the outgoing data packets from the offload processor 300 can be customized to each consumer.

Furthermore, in additional exemplary embodiments, the offload processor can perform other functions in addition to or instead of the repackaging operations illustrated by FIGS. 3-6. For example, the offload processor can be configured to perform packet mapping as described below in connection with FIG. 19.

As noted, when positioned upstream from an electronic trading platform, the offload processor can be employed in a network element resident in a data distribution network for financial market data. Examples of network elements include repeaters, switches, routers, and firewalls. A repeater embodiment, a single input port and single output port device, may be viewed as a “smart” link where data is processed as it flows through the network link. In a preferred embodiment, such a network element can be a network switch. As such, the inventors disclose various embodiments of a network switch that offloads various processing tasks from electronic trading platforms, including embodiments of an intelligent feed switch and embodiments of an intelligent distribution switch, as described below.

B. Intelligent Feed Switch:

A common practice in financial exchange and electronic trading platform architecture is to achieve greater scale by “striping the data” across multiple instances of the platform components responsible for data transmission, consumption, and processing. If the data is imagined to flow vertically through a depiction of the overall system, then this approach to scale is often termed “horizontal scaling”. This approach is accepted in the industry as the most viable approach from an overall platform perspective, as the escalating rate of market data messages (doubling every 6 to 11 months) is outpacing the technology improvements available to individual components in the platform.

In order to facilitate data striping, some feed sources (typically exchanges) divide a market data feed into multiple “lines” where a given line caries a proper subset of the market data published by the financial exchange. Typically, all of the market data updates associated with a given financial instrument is transmitted on a single line. The assignment of a given financial instrument to a line may be static or dynamic. Static assignments typically partition the set of instruments by using the starting characters in an instrument symbol and assigning an alphabet range to a given line. For example, consider a feed partitioned into four lines. Line 0 carries updates for financial instruments whose symbol begins with letters “A” through “F”; line 1 carries updates for symbols beginning with letters “G” through “M”; line 2 carries updates for symbols beginning with letters “N” through “S”; line 3 carries updates for symbols beginning with letters “T” through “Z”. Dynamic line assignments are typically performed as follows. A static mapping line transmits information to feed consumers communicating the number of data lines, the address(es) of the data lines, and the mapping of financial instruments to each data line.

Similarly, financial exchanges typically enforce striping across the ports provided for order entry. A financial exchange provides multiple communication ports to which market participants establish connections and enter orders to electronically buy and sell financial instruments. Exchanges define the subset of financial instruments for which orders are accepted on a given port. Typically, exchanges statically define the subset of financial instruments by using the starting character(s) in the instrument symbol. They assign an alphabet range to a given port. For example, consider an exchange that provides four ports to a given participant. Port 0 accepts orders for financial instruments whose symbol begins with letters “A” through “F”; port 1 accepts orders for symbols beginning with letters “G” through “M”; port 2 accepts orders for symbols beginning with letters “N” through “S”; port 3 accepts orders for symbols beginning with letters “T” through “Z”.

The striping of data by exchanges, across multiple market data feed lines as well as multiple order entry ports, dictates a horizontally scaled architecture for electronic trading platforms. Trading applications are typically responsible for trading a subset of the financial instruments. Each application consumes the market data updates associated with its subset of financial instruments and generate orders for those instruments. Implementing a horizontally scaled system is straightforward for a platform that receives data from and transmits orders to a single market. The design task is significantly complicated when the trading platform receives data from multiple exchanges, computes pan-market views of financial instruments, and transmits orders to multiple exchanges.

Each market data feed source implements its own striping strategy. Note that some market data feeds are not striped at all and employ a single line. The subsets of financial instruments associated with the lines on one market data feed may be different from the subsets of financial instruments associated with the lines on another market data feed. Therefore, the updates associated with financial instruments processed by a given component can be sourced from different sets of lines from each market data feed. These factors significantly complicate the market data processing and distribution components that are responsible for delivering normalized market data to downstream applications, especially when composite, pan-market views of financial instruments are required.

Disclosed herein are multiple variants of an Intelligent Feed Switch (IFS) that offloads numerous market data consumption, normalization, aggregation, enrichment, and distribution functions from downstream components such as feed handlers, virtual order books, or more generally, ticker plants. The specific functions performed by variants of the IFS are described in the sections below. As previously mentioned, utilizing an IFS in the market data feed network provides performance, efficiency, functionality, and scalability benefits to electronic trading platforms.

1. IFS Architecture:

The IFS can be implemented on a wide variety of platforms that provide the necessary processing and memory resources, switching resources, and multiple physical network ports. Just as network switches can be built at various scales, two ports up to thousands of ports, the IFS can be scaled to meet the needs of electronic trading platforms of varying scale. In the embodiment shown in FIG. 21, the IFS provides multiple ports of 10 Gigabit Ethernet connectivity, in addition to a 10/100/1000 Ethernet port for management and control. An FPGA that is resident within the switch can provide fine-grained parallel processing resources for offload engines as previously noted. The memory cache provides dedicated high-speed memory resources for the offload engines resident on the FPGA. The memory cache may be implemented in Synchronous Dynamic Random Access Memory (SDRAM), Synchronous Random Access Memory (SRAM), a combination of the two, or other known memory technologies. A dedicated Ethernet switch ASIC increases the port count of the IFS using existing, commodity switching devices and allows traffic to bypass the offload engines in the FPGA. The FPGA is directly connected to the switching device by consuming one or more ports on the switching device. The amount of communication bandwidth between the FPGA and switching device can be scaled by increasing the number of ports dedicated to the interface. The FPGA may also provide one or more ports for external connectivity, adding to the total number of ports available on the IFS. In addition to providing standard protocol connectivity, e.g. Ethernet, the ports that are directly connected to the FPGA can be leveraged to implement custom protocols. For example, if multiple Intelligent Feed Switches are interconnected, the FPGAs inside the switches may implement a custom protocol that eliminates unnecessary overhead. Similarly, if a custom Network Interface Card (NIC) containing an FPGA directly connected to the physical network port(s) is used in a server connected to the IFS, a custom protocol can be employed between the IFS and the server. The control processor provides general purpose processing resources to control software. A standard operating system (OS) such as Linux is installed on the control processor. Configuration, control, and monitoring software interfaces with the FPGA device via a standard system bus, preferably PCI Express. The control processor also features a system bus interface to the switch device.

FIG. 22 shows another embodiment of the IFS wherein the switch device is replaced by another FPGA device with a dedicated memory cache. Note that the peer-to-peer (P2P) interface between the FPGA devices need not utilize a standard network protocol, such as Ethernet, but may use a low-overhead protocol for communicating over high speed device interconnects. This architecture increases the amount of processing resources available for offload functions and allows custom network protocols to be supported on any port. Also note that additional FPGAs can be interconnected to scale the number of external ports provided by the IFS.

FIG. 23 shows another embodiment of the IFS wherein a single FPGA device is utilized. This architecture can minimize cost and complexity. The number of physical ports supported is subject to the capabilities of the selected FPGA device. Note that some devices include embedded general purpose processors capable of hosting configuration, control, and monitoring applications.

Note that other processing resources such as chip multi-processors (CMPs), graphics processing units (GPUs), and network processing units (NPUs) may be used in lieu of an FPGA. An example of a network switch platform that may suitable for use as an intelligent switch to process financial market data is the Arista Application Switch 7124FX from Arista Networks, Inc. of Santa Clara, Calif.

2. Platform Architecture with IFS:

As shown in FIG. 8, the IFS can be positioned within the market data feed network of the electronic trading platform. In some market data networks, a single IFS may be capable of providing the required number of switch ports, processing capacity, and data throughput. The number of switch ports required depends on the number of physical network links carrying input market data feeds and the number of physical network links connecting to downstream platform components. The amount of processing capacity required depends on the tasks performed by the IFS and the requirements imposed by the input market data feeds. The data throughput depends on the aggregate data rates of input market data feeds and aggregate data rates of output streams delivered to platform components.

If the aforementioned requirements exceed the capacity of a single IFS, then a multi-element network can be constructed that includes the IFS. As shown in FIG. 9, multiple conventional switch elements can be used to aggregate the data from the physical network links carrying market data feeds. For example, a conventional switch could be used to aggregate data from forty (40) 1 Gigabit Ethernet links into four (4) 10 Gigabit Ethernet links for transfer to the IFS. This reduces the number of upstream ports required by the IFS. As shown in FIG. 10, multiple Intelligent Feed Switches can be used if the requirements exceed the capacity of a single IFS. In this example, multiple IFS elements consume aggregated data from upstream conventional switches, then distribute data to downstream platform elements. The network architectures in FIGS. 9 and 10 are exemplary but not exhaustive. The IFS can be combined with other switch elements to form large networks, as is well-known in the art.

FIG. 11 presents a simplified diagram of a conventional electronic trading platform with an IFS deployed in the market data network. In this arrangement, the IFS offloads one or more functions from the downstream feed handler components. FIG. 12 provides a logical diagram of the functions performed by a typical feed handler in a conventional electronic trading platform. A description of the specific functions and how they can be offloaded to the IFS are described in detail in the sections below. FIG. 13 provides a logical diagram of a conventional electronic trading platform with numerous feed handler function performed by the IFS. Note that the only remaining functions performed by the feed handler components are message parsing, business logic and message normalization, and subscription-based distribution. Note that we later describe an embodiment capable of further offloading the feed handler components from subscription-based distribution. Existing feed handler components can thus receive substantial benefits with no modification by simply having less data to process. Moreover, with a substantially reduced workload, feed handler components can also be re-engineered to be more simple, efficient, and performant. As a result the number of discrete feed handler components required by the electronic trading platform can be substantially reduced. The latency associated with market data normalization and distribution can be substantially reduced, resulting in advantages for latency-sensitive trading applications. Furthermore, the amount of space and power required to host the electronic trading platform can be substantially reduced, resulting in simplified system monitoring and maintenance as well as reduced cost.

FIG. 14 presents a simplified diagram of an electronic trading platform that includes one or more ticker plant components that integrate multiple components in the conventional electronic trading platform. An example of an integrated ticker plant component that leverages hardware acceleration and offload engines is described in the above-referenced and incorporated patents and patent applications (see, for example, U.S. Pat. No. 7,921,046, U.S. Pat. App. Pub. 2009/0182683, and WO Pub. WO 2010/077829). Even integrated ticker plant components such as these can benefit from offloading functions to an IFS. As shown in FIG. 15, the IFS can offload the feed handling tasks reflected in FIG. 13, as well as additional functions such as price aggregation, event caching, top-of-book quote generation, and data quality monitoring. A description of these functions and how they can be offloaded to an IFS is provided in subsequent sections. Offloading these functions can boost the capacity of an integrated ticker plant component, reducing the need to horizontally scale. An IFS can also simplify the task of horizontally scaling with multiple integrated ticker plant components. For example, consider a platform architecture where three ticker plant components are used and horizontal scaling is achieved by striping the symbol range across the ticker plant components. The first ticker plant is responsible for processing updates for instrument symbols beginning with characters “A” through “H”. The IFS is capable of ensuring that the first ticker plant only receives updates for the assigned set of instruments by performing the symbol routing and repackaging functions depicted in FIG. 15. Note that other functions predicate the symbol routing function as described subsequently. Striping the data in this way allows each ticker plant component to retain the ability to compute composite, or pan-market, views of financial instruments. Examples of hardware-accelerated processing modules for computing composite quote and order book views are described in the above-referenced and incorporated U.S. Pat. No. 7,921,046 and WO Pub. WO 2010/077829.

Some latency-sensitive trading applications require minimal data normalization in order to drive their trading strategies. Some of these applications may be able to directly consume data from an IFS, as shown in FIG. 16. This eliminates additional network hops and processing from the datapath, thus reducing the latency of the data delivered to the applications. This latency reduction can provide advantages to these latency-sensitive trading applications. Furthermore, one or more of such latency-sensitive trading applications that consume data directly from the IFS can also be optionally configured to consume data from the distribution network to also receive normalized market data from a ticker plant such as a hardware-accelerated low latency ticker plant (see the dashed connection in FIG. 16). An example of a situation where such an arrangement would be highly advantageous would be when a trading application takes ultra-low-latency data from a direct feed (e.g., in the same data center) for a local market, as well as data sourced from a consolidated feed for remote markets, such as a futures or foreign exchange market in a different country.

As shown in FIG. 8, the IFS is positioned within the market data feed network, and represents the physical embodiment of that network.

3. Packet Mapping:

As shown in FIGS. 13 and 15, the IFS may be configured to offload one or more functions from downstream feed consumers. The same set of functions may not be performed for every feed flowing through the IFS. Furthermore, the way in which each function is performed may vary by feed, as feed sources employ different message formats, field identifiers, datatypes, compression schemes, packet formats, transmission protocols, etc. In order to correctly perform the prescribed functions on a given packet, the IFS must first identify the feed to which a given packet belongs, then retrieve the necessary information about how packets belonging to the given feed are to be handled. In order to do so, the IFS preferably maintains a mapping table using a tuple such as the IP <source address, destination address, protocol> tuple to identify the feed to which a packet belongs (additional optional members of the tuple may include a source port number, a destination port number, and a transport protocol port number). Preferably, the embedded processor in the IFS utilizes a hash table, where the <source address, destination address, protocol> tuple is used as input to the hash function. However, a content addressable memory (CAM) is another alternative to a hash table for the packet mapping operation. In a hashing embodiment, preferably, a control processor in the IFS configures the hash function and maintains the hash table. At minimum in this example, the entry in the table contains a feed identifier. The additional information about how packets belonging to the feed should be handled may be stored directly in the hash table, or in a separate table indexed by the feed identifier. The additional information may include one or more of the following pieces of meta-data:

-   -   Market identification code (MIC); a unique identifier for the         exchange/market. Preferably, this code would be a binary         enumeration of the ISO 10383 market identification codes (MIC)         for the markets supported by the IFS. For example, XNYS is the         MIC for the New York Stock Exchange which may be assigned an         enumerated value in order to consume minimal space in the         meta-data table and pre-normalized messages.     -   Data source identification code (DSIC); a unique identifier for         the specific feed. Note that multiple feeds may carry market         updates for the same market. For example, updates for equities         traded on the NYSE are reported by multiple feeds: the         Consolidated Quote System (CQS), Consolidated Tape System (CTS),         NYSE Quotes, NYSE Trades, NYSE OpenBook Ultra, etc. Each feed,         or data source, is assigned a unique tag. Similar to the market         codes, the data source codes are assigned an enumerated value in         order to consume minimal space in the meta-data table and         pre-normalized messages.     -   Line identification code (LIC); a unique identifier for the         specific line within the feed. Similar to the MIC and DSIC, each         unique line is assigned a unique tag. The line identifiers         configured on the IFS are preferably assigned an enumerated         value in order to consume minimal space in the meta-data table         and pre-normalized messages.     -   A flag indicating if the feed utilizes FIX/FAST encoding     -   FAST decoding templates (if necessary), or template specifying         how to parse the packet into messages     -   FIX decoding templates, or template specifying how to parse         messages into fields     -   Template specifying field datatype conversions to perform     -   Field identifiers and/or offsets for fields comprising the         instrument symbol     -   Field identifier or offset for message sequence number (if         necessary)

This meta-information can be propagated to downstream offload engines in the IFS, along with the packet, as shown in FIG. 19. The configuration, control, and table management logic configures the hash function and table entries. This logic is preferable hosted on a co-resident control processor, preferably as a pipelined processing engine.

4. Redundant Feed Arbitration:

In order to allow a market data feed to be routed across multiple networks, the Internet Protocol (IP) is ubiquitously used as the network protocol for market data feed distribution. Feed sources typically employ one of two transport protocols: Transmission Control Protocol (TCP) or Unreliable Datagram Protocol (UDP).

TCP provides a reliable point-to-point connection between the feed source and the feed consumer. Feed consumers initiate a connection with the feed source, and the feed source must transmit a copy of all market data updates to each feed consumer. Usage of TCP places a large data replication load on the feed source, therefore it is typically used for lower bandwidth feeds and/or feeds with a restricted set of consumers. As shown in FIG. 26, a feed handler can terminate the TCP connection, passing along the payload of the TCP packets to the packet parsing and decoding logic. Implementation of the TCP receive logic is commonly provided by the Operating System (OS) or network interface adapter of the system upon which the feed handler is running Typically, redundant TCP connections are not used for financial market data transmission, as TCP provides reliable transmission.

UDP does not provide reliable transmission, but does include multicast capability. Multicast allows the sender to transmit a single copy of a datagram to multiple consumers. Multicast leverages network elements to perform the necessary datagram replication. An additional protocol allows multicast consumers to “join” a multicast “group” by specifying the multicast address assigned to the “group”. The sender sends a single datagram to the group address and intermediary network elements replicate the datagram as necessary in order to pass a copy of the datagram to the output ports associated with consumers that have joined the multicast group.

While providing for efficient data distribution, UDP multicast is not reliable. Datagrams can be lost in transit for a number of reasons: congestion within a network element causes the datagram to be dropped, a fault in a network link corrupts one or more datagrams transiting the link, etc. While there have been numerous reliable multicast protocols proposed from academia and industry, none have found widespread adoption. Most market data feed sources that utilize UDP multicast transmit redundant copies of the feed, an “A side” and a “B side”. Note that more than two copies are possible. For each “line” of the feed, there is a dedicated multicast group, an “A” multicast group and a “B” multicast group. Typically, the feed source ensures that each copy of the feed is transmitted by independent systems, and feed consumers ensure that each copy of the feed transits an independent network path. Feed consumers then perform arbitration to recover from data loss on one of the redundant copies of the feed.

Note that a packet may contain one or more market data update messages for one or more financial instruments. Typically, feed sources assign a monotonically increasing sequence number to each packet transmitted on a given “line”. This simplifies the task of detecting data loss on a given line. If the most recently received packet contains a sequence number of 5893, then the sequence number of the next packet should be 5894. When using redundant UDP multicast groups, feed sources typically transmit identical packets on the redundant multicast groups associated with a line. For example, packet sequence number 3839 on the A and B side of the feed contains the same market data update messages in the same order. This simplifies the arbitration process for feed consumers.

FIG. 17 provides a simple example of redundant feed arbitration. The sequence of packets for a single pair of redundant lines is shown. Time progresses vertically, with packet 5894 received first from line 1A, packet 5895 received second from line 1A, etc. A line arbiter forwards the packet with the next sequence number, regardless of which “side” the packet arrives on. When the redundant copy of the packet is received on the other side, it is dropped. As depicted in FIG. 17, one of the redundant sides typically delivers a packet consistently prior to the other side. If the arbiter receives a packet with a sequence number greater than the expected sequence number, it detects a gap on one of the redundant lines. The arbiter can be configured to wait a configured hold time to see if the missing packet is delivered by the other side. The difference between the arrival times of copies of the same packet on the redundant lines is referred to as the line skew. In order to be effective, the hold time can be configured to be greater than the average line skew. If the missing packet does arrive on the redundant side prior to the expiration of the hold time, then a gap is registered for the particular feed line.

When line gaps occur there are a number of recovery and mitigation strategies that can be employed. The arbiter typically reports the missing sequence numbers to a separate component that manages gap mitigation and recovery. If the feed provides retransmission capabilities, then the arbiter may buffer packets on both sides until the missing packets are returned by the gap recovery component.

Some feeds sequence updates on a per-message basis or a per-message/per-instrument basis. In these cases, a packet sequence number may not be monotonically increasing or may not be present at all. Typically, arbitration is performed among one or more copies of a UDP multicast feed; however, arbitration can occur among copies of the feed delivered via different transmission protocols (UDP, TCP, etc.). In these scenarios, the content of packets on the redundant copies of the feed may not be identical. The transmitter of packets on the A side may packetize the sequence of market data update messages differently from the transmitter on the B side. This requires the IFS to parse packets prior to performing the arbitration function.

The line identification code (LIC) provided in the meta-data associated with the packet allows the IFS to perform the appropriate line arbitration actions for a given packet. If the packet belongs to an unarbitrated TCP flow, then the packet may bypass the line arbitration and gap detection engine. If the line requires dictates arbitration at the message-level as opposed to the packet level, then the IFS first routes the packet to parsing and decoding engines. The line arbitration and gap detection function may be performed by multiple parallel engines. The LIC may also be used to the route the packet to the appropriate engine handling arbitration for the associated feed line. Furthermore, the LIC is used to identify the appropriate arbitration buffer into which the packet should be inserted.

FIG. 18 provides an example of a line arbitration offload engine, which is preferably implemented in a pipelined processing engine. For each input line, the arbiter maintains a packet buffer to store the packets received from the redundant sides of the feed line. The example in FIG. 18 demonstrates two-arbitration; additional buffers are provisioned if multi-way arbitration is performed. For feeds transmitted via UDP, it is possible for packets on a given multicast group to be delivered in out-of-sequence, if the packets traverse different paths through the network. The packet buffers in the arbiter may optionally provide for resequencing by inserting each new packet in the proper sequence in the buffer. Typically market data networks are carefully designed to minimize latency and tightly control routing, thus out-of-sequence delivery is typically not a problem. Thus, arbiter functions typically omit resequencing to reduce overhead and complexity.

The compare, select and drop logic in the arbiter performs the core arbitration function as previously described. A register is used to maintain the next expected sequence number. The logic compares the sequence number of the packet residing at the head of each packet buffer. If a matching sequence number is found, the packet is forwarded. If the sequence number is less than the expected sequence number, the packet is dropped. If the sequence number is greater than the expected sequence number, the other buffer or buffers are examined for the required packet. Note that this may require that multiple packets be read until a match is found, the buffer is empty, or a gap is detected. If a gap is detected the gap detection and reporting logic resets then starts the wait timer. If the expected packet sequence number does not arrive before the wait timer exceeds the value in the max hold time register, then a gap is reported to the gap mitigation and recovery engine with the missing packet sequence number range. Note that the gap detection and reporting logic may also report gap information to a control processor or to downstream monitoring applications via generated monitoring messages. If the gap mitigation and recovery engine is configured to request retransmissions, then the arbiter pauses until the gap mitigation and recovery engine passes the missing packet or packets to the arbiter or returns a retransmission timeout signal. The gap mitigation and recovery engine may be hosted on the same device as the arbiter, or it may be hosted on a control processor within the IFS.

As shown in FIG. 27, the IFS may implement TCP termination logic in order to offload feed handler processing for feeds utilizing TCP for reliable transmission. Implementation of TCP consumer logic, including implementation in custom hardware logic, is available from hardware logic block vendors that supply TCP hardware stack modules (e.g., firmware modules that perform TCP endpoint functionality, such as PLDA, Embedded Design Studio, HiTech Global, etc. Note that TCP feeds processed by the TCP termination logic can bypass the line arbitration and gap detection component, as redundant TCP stream are not typically used. By terminating the TCP connection in the IFS, the IFS can effectively provide protocol transformation upstream from the feed handler. The output protocol can be a protocol such as UDP unicast or multicast, raw Ethernet, or a Remote Direct Memory Access (RDMA) protocol implemented over Ethernet (e.g., RoCE).

5. Feed Pre-Normalization:

In addition to performing line arbitration and gap detection, mitigation, and recovery, the IFS can perform one or more “pre-normalization” functions in order to simplify the task of downstream consumers. Following line arbitration, the IFS preferably decomposes packets into discrete messages. As previously described, feed sources typically pack multiple update messages in a single packet. Note that each feed may employ a different packetization strategy, therefore, the pre-normalization engine in the IFS utilizes the packet parsing templates retrieved by the packet mapping engine. Packet parsing techniques amenable to implementation in hardware and parallel processors are known in the art as described in the above-referenced and incorporated U.S. Pat. No. 7,921,046. If the feed associated with the packet utilizes FAST compression, then the pre-normalization engine must utilize the FAST decoding template in order to decompress and parse the packet into individual messages, as described in the above-referenced and incorporated U.S. Pat. No. 7,921,046.

Once the packet is parsed into discrete messages, specific fields may be extracted from the messages in order to enable additional pre-normalization functions. Template-based parsing in offload engines is also addressed in the above-referenced and incorporated U.S. Pat. No. 7,921,046. Discrete messages and message fields are passed to downstream functions. Note that the message parsing engine may only extract specific fields required for downstream functions, as dictated by the templates included in the meta-data for the packet. For example, the parser may only extract the symbol field in order to enable symbol-based routing and repackaging. For some feeds, the symbol mapping function may require extraction of the order reference number in book update events. This can also be specified by the parsing template.

Note that the message parsing logic can be configured to preserve the original structure of the message. Extracted fields, such as symbols and order reference numbers, can be added to the meta-data that accompanies the packet as it propagates through the IFS. By preserving the message structure, downstream consumer applications need not be changed when an IFS is introduced in the market data network. For example, an existing feed handler for the NASDAQ TotalView feed need not change, as the format of the messages it processes still conforms to the feed specification. If the symbol-routing and repackaging function is applied, the existing feed handler will simply receive packets with messages associated with the symbol range for which it is responsible, but the message formats will conform to the exchange specification. This function is described in more detail below.

The pre-normalization logic can also be configured to offload normalization logic from downstream consumers. For example, the parsing logic can be configured to perform FAST decompression and FIX parsing. Per the parsing templates in the meta-data, the fields in each message can be configured to a prescribed native data type. For example, an ASCII-encoded price field can be converted into a signed 32-bit integer, an ASCII-encoded string can be mapped to a binary index value, etc. The type-converted fields can then be aligned on byte or word boundaries in order to facilitate efficient consumption by consumers. The pre-normalization logic can maintain a table of downstream consumers capable of receiving the pre-normalized version of the feed. For example, the IFS may transmit pre-normalized messages on ports 3 through 8, but transmit the raw messages on ports 9 through 12.

For some feeds, the IFS can be configured to append fields to the raw message, allowing consuming applications to be extended to leverage the additional fields to reap performance gains, without disrupting the function of existing consumers. For example, the IFS may append the MIC, DSIC, LIC, and binary symbol index to the message. Additional appended fields may include, but are not limited to, message-based sequence numbers and high-resolution IFS transmit timestamps.

As previously mentioned, the IFS can be configured to perform a symbol mapping function. The symbol mapping function assigns a binary symbol index to the financial instrument associated with the update event. This index provides a convenient way for downstream functions and consuming applications to perform processing on a per symbol basis. An efficient technique for mapping instrument symbols using parallel processing resources in offload engines is described in the above-referenced and incorporated U.S. Pat. No. 7,921,046. Note that some feeds provide updates on a per-order basis and some update events do not contain the instrument symbol, but only an order reference number. As shown in FIG. 28, feed consumers can maintain a table of active orders in order to map an order reference number to an active order to buy or sell the financial instrument identified by the associated symbol. Note that events that report a new active order include a reference to the symbol for the financial instrument. In this case, the symbol is mapped to a symbol ID. The order information and symbol ID are then added to the active order table. When subsequent order-referenced modify or delete events (that do not contain a symbol)_are received, the order reference number is used to lookup the order's entry in the active order table that includes the symbol ID. Thus, as shown in FIG. 28, a demultiplexer (DEMUX) can receive streaming parsed messages that include a symbol reference or an order reference to identify a message or event type. This type data can determine whether the parsed message is passed to the output line feeding the symbol lookup operation or the output line feeding the order lookup operation. As shown, data for new orders can be passed from the symbol lookup to the order lookup for updating the active order table. A multiplexer (MUX) downstream from the symbol lookup and order lookup operations can merge the looked up data (symbol ID, order information, as appropriate) with the parsed messages for delivery downstream. An efficient technique for mapping order reference numbers to the mapped symbol index using parallel processing resources in offload engines is described in the above-referenced and incorporated WO Pub. WO 2010/077829. In order to perform the symbol mapping function, the computational resources in the IFS can include dedicated high-speed memory interfaces.

As part of the pre-normalization function, the IFS may also assign one or more high-precision timestamps. For example, a timestamp may be assigned when the IFS receives a packet, a timestamp may be assigned immediately prior to transmitting a packet, etc. The high-precision timestamp preferably provides nanosecond resolution. In order to provide synchronized timestamps with downstream consumers, the time source used to assign the timestamps should be disciplined with a high-precision time synchronization protocol. Example protocols include the Network Time Protocol (NTP) and the Precision Time Protocol (PTP). The protocol engine can be co-resident with the offload engines in the IFS, but is preferably implemented in a control processor that disciplines a timer in the offload engines. As part of the pre-normalization function, the IFS may also assign additional sequence numbers. For example, the IFS may assign a per-message, per-symbol sequence number. This would provide a monotonically increasing sequence number for each instrument. These additional timestamps and sequence numbers may be appended to raw message formats or included in the pre-normalized message format, as described above.

6. Symbol-Based Routing and Repackaging:

The symbol-based routing allows the IFS to deliver updates for a prescribed set of symbols to downstream components in the electronic trading platform. As shown in FIG. 16, the IFS can act as a subscription based routing and filtering engine for latency-sensitive applications that consume the raw or pre-normalized updates directly from the IFS. Similarly, the IFS can facilitate a horizontal scaling strategy by striping the incoming raw feed data by symbol within the market data feed network itself. This allows the IFS to deliver the updates for the prescribed symbol range to downstream feed handler or ticker plant components, without having to rely on additional processing capabilities in those components to perform this function. This can dramatically reduce data delivery latency and increase the processing capacity of those components.

FIG. 20 depicts an exemplary processing module configured to perform symbol-routing and repackaging. Such a module is preferably implemented as a pipelined processing engine. As shown in FIG. 20, the symbol-routing and repackaging function first utilizes the symbol index to lookup an interest list in the interest list table. Note that additional fields such as the market identification code (MIC) and data source identification code (DSIC) may be used in addition to the symbol index to lookup an interest list. Similar to the interest-based filtering and replication discussed in the above-referenced and incorporated U.S. Pat. No. 7,921,046, the interest list is stored in the form of a bit vector where the position of each bit corresponds to a downstream consumer. For the IFS, a downstream consumer may be a physical output port, a multicast group, a specific host or server, a specific application (such as a feed handler), etc. The scope of a “consumer” depends on the downstream platform architecture. Associated with each consumer is a message queue that contains the messages destined for the consumer. A fair scheduler ensures that each of the message queues receives fair service. Packetization logic reads multiple updates from the selected message queue and packages the updates into a packet for transmission on the prescribed output port, using the prescribed network address and transport port. Messages can be combined into an outgoing Ethernet frame with appropriate MAC-level, and optionally IP-level headers.

Preferably, the packetization logic constructs maximally sized packets: the logic reads as many messages as possible from the queue until the maximum packet size is reached or the message queue is empty. Note that packetization strategy and destination parameters may be specified via packaging parameters stored in a table. The packetization logic simply performs a lookup using the queue number that it is currently servicing in order to retrieve the appropriate parameters. The interest list and packaging parameter tables are preferably managed by configuration, control, and table management logic hosted on a co-resident control processor.

Note that the messages in the newly constructed packets may have been transmitted by their concomitant feed sources in different packets or in the same packet with other messages that are now excluded. This is an example of the IFS constructing a customized “feed” for downstream consumers.

If downstream consumers are equipped with network interface devices that allow for custom protocol implementation, e.g. an FPGA connected directly to the physical network link, then additional optimizations may be implemented by the packetization logic. For example, the Ethernet MAC-level (and above) headers and CRC trailer may be stripped off any packet. By doing so, unnecessary overhead can be removed from packets, reducing packet sizes, reducing data transmission latency, and reducing the amount of processing required to consume the packets. As shown in FIG. 16, this optimization may apply to latency-sensitive trading applications, feed handlers, or ticker plants.

7. Depth Price Aggregation and Synthetic Quotes:

With sufficient processing and memory resources, additional data normalization functions may be performed by the IFS, and thus offloaded from platform components such as feed handlers, virtual order book engines, and ticker plants. One such function is price-normalization for order-based depth of market feeds. As described in the above-referenced and incorporated U.S. Pat. No. 7,921,046, WO Pub. WO 2010/077829, and U.S. patent application Ser. No. 13/316,332, a number of market data feeds operate at the granularity of individual orders to buy or sell a financial instrument. The majority of real-time updates represent new orders, modifications to existing orders, or deletions of existing orders. As described in these incorporated references, a significant number of market data applications choose to consume the order-based depth of market feeds simply due to the reduced data delivery latency relative to top-of-book or consolidated feeds. However, the applications typically do not require visibility into the individual orders, but rather choose to view pricing information as a limited-depth, price-aggregated book, or as a top-of-book quote. In the above-referenced and incorporated U.S. Pat. No. 7,921,046, WO Pub. WO 2010/077829, and U.S. patent application Ser. No. 13/316,332, a number of techniques are disclosed for efficiently performing price aggregation in parallel processing elements such as reconfigurable hardware devices. The same methods can be applied in the context of an intelligent feed switch to offload price aggregation from downstream consumers. For example, rather than consuming the NASDAQ Totalview feed in its raw order-referenced format, downstream consumers can consume price-aggregated updates reflecting new price points, changes to existing price points, and deletions of price points from the book. This can reduce the number of update events to downstream consumers.

Note that price aggregation may be performed on a per-symbol, per-market basis (e.g. NASDAQ market only), or on a per-symbol, pan-market basis (e.g. NASDAQ, NYSE, BATS, ARCA, Direct Edge) to facilitate virtual order book views.

A further reduction in the number of updates consumed by downstream consumers can be achieved by performing size filtering. Size filtering is defined as the suppression of an update if the result of the update is a change in aggregate volume (size) at a pre-existing price point, where the amount of the change relative to the most recent update transmitted to consumers is less than a configured threshold. Note that the threshold may be relative to the current volume, e.g. a change in size of 50%.

Again, if sufficient processing and memory resources are deployed within the IFS, a synthetic quote engine can be included. As described in the above-referenced and incorporated U.S. Pat. No. 7,921,046, WO Pub. WO 2010/077829, and U.S. patent application Ser. No. 13/316,332, price-aggregated entries can be sorted into a price book view for each symbol. The top N levels of the price-aggregated represent a top-of-book quote. Note that N is typically one (i.e. only the best bid and offer values), but N may be set to be a small value such as three (3) to enhance the quote with visibility into the next N-1 price levels in the book. The techniques described in these incorporated referenced can be used to efficiently sort price-aggregated updates into price books and generate top-of-book quotes when an entry in the top N levels changes using parallel processing resources.

8. Event Caching:

As previously described, the IFS is capable of only transmitting updates for symbols for which downstream consumers are interested using the symbol-based routing described above. If a consumer wishes to add a symbol to its set of interest, the consumer would need to wait until a subsequent quote event is transmitted by the feed source in order to receive the current pricing for the associated financial instrument. A simple form of a cache can be efficiently implemented in the IFS in order to allow downstream consumers to immediately receive current pricing data for a financial instrument if its symbol is dynamically added to its set of interest during a trading session. For feeds that provide top-of-book quote updates and last trade reports, the IFS can maintain a simply last event cache that stores the most recent quote and most recent trade event received on a per-symbol, per-market basis. Specifically, a table of events is maintained where an entry is located using the symbol index, MIC, and MSIC. When the set of interest changes for a given downstream consumer, the current quote and trade events in the event cache are transmitted to the consumer. This allows the consumer to receive the current bid, offer, and last traded price information for the instrument.

If sufficient processing resources exist in the IFS, a full last value cache (LVC) can be maintained as described in the above-referenced and incorporated U.S. Pat. No. 7,921,046.

9. Data Quality Monitoring:

The IFS can be also be configured to monitor a wide variety of data quality metrics on a per-symbol, per-market basis. A list of data quality metrics includes but is not limited to:

-   -   Line gap: packet loss experienced on the line carrying updates         for the symbol.     -   Line dead: the input feed line is detected to be in a “dead”         state where no data is being received.     -   Locked market: the best bid and offer prices for the instrument         on the given market are identical     -   Crossed market: the best bid price is larger than the best offer         price for the instrument on the given market

The data quality can be reflected in an enumerated value and included in messages transmitted to downstream consumers as an appended field, as previously described. These enumerated data quality states can be used by the IFS and/or downstream consumers to perform a variety data quality mitigation operations.

10. Data Source Failover:

An example of a data quality mitigation operation is to provide data source failover. As previously described, there may be multiple data sources for market data updates from a given market, hence the need for a data source identification code (DSIC). Rather specify a specific <symbol, market, data source> tuple when establishing interest in an instrument, downstream consumers may specify a <symbol, market> tuple where the “best” data source is selected by the IFS. A prioritized list of data sources for each market is specified in the control logic. When the data quality associated with the current preferred data source for a market transitions to “poor” quality state, the IFS automatically transitions to the next highest-priority data source for the market. The data quality states that constitute “poor” quality are configured in the control logic. When a data source transition occurs, the control logic alters the interest list entries associated with affected instruments and downstream consumers. Note that if a higher-priority data source transitions out of a “poor” quality state, the IFS automatically transitions back to the higher-priority data source. Preferably, the IFS is configured to apply hysteresis to the data source failover function to prevent thrashing between data sources. Note that data source failover may rely on the presence of other functions within the IFS such as synthetic quote generation if failover is to be supported between depth of market feeds and top-of-book quote feeds.

11. Monitoring, Configuration, and Control:

The monitoring, configuration, and control logic described is preferably hosted on a co-resident processor in the IFS. This logic may interface with applications in the electronic platform or remote operations applications. In one embodiment of the IFS, control messages are received from an egress port. This allows one or more applications in the electronic trading platform to specify symbol routing parameters, packet and message parsing templates, prioritized lists of data sources, gap reporting and mitigation parameters, etc.

In addition, a variety of statistics counters and informational registers are maintained by the offload engines that can be accessed by the control logic in the IFS such as per-line packet and message counters, packet and message rates, gap counters and missing sequence registers, packet size statistics, etc. These statistics are made available to the external world via common mechanisms in the art, including SNMP, HTML, etc.

12. Feed Generation:

The IFS can also be used by feed sources (exchanges and consolidated feed vendors) to offload many of the functions required in feed generation. These tasks are largely the inverse of those performed by feed consumers. Specifically, the IFS can be configured to encode updates using prescribed encoding templates and transmit the updates on specified multicast groups, output ports, etc. Other functions that are applicable to feed generation include high-resolution timestamping, rate monitoring, and data quality monitoring.

C. Intelligent Distribution Switch:

The same methods and apparatuses can be applied to the task of distributing data throughout the electronic trading platform. As shown in FIG. 24, an Intelligent Distribution Switch (IDS) can be positioned downstream of market data normalization components in the electronic trading platform. The IDS can be used to offload distribution functions from normalization components such ticker plants, to offload data consumption and management functions from downstream consumers such as trading applications, and to introduce new capabilities into the distribution network in the electronic trading platform. Examples of distribution capabilities are described in the above-referenced and incorporated U.S. Pat. App. Ser. No. 61/570,670.

The IDS architecture can be one of the previously described variants shown in FIGS. 21, 22, and 23. Note that the number of switch ports and amount of interconnect bandwidth between internal devices (FPGAs, switch ASICS, memory, etc.) may be provisioned differently for an IDS application, relative to an IFS application.

As shown in FIG. 25, the IDS may host one or more distribution functions. The IDS can be used to offload the task of interest-based distribution. The IDS can maintain a mapping from instrument symbol to interest list, an example of such a mapping being described in the above-referenced and incorporated U.S. Pat. No. 7,921,046. If point-to-point transmission protocols are in use, then the IDS makes the requisite copies of the update event and addresses each event for the specified consumer. By offloading this function, upstream components such as ticker plants only need to propagate a single copy of each update event. This reduces the processing resource requirement, or allows the processing resources previously dedicated to interest list maintenance and event replication to be redeployed for other purposes.

Data source failover may also be performed by the IDS. Like the previously described data source failover function performed in the IFS, the IDS allows downstream consumers to specify a prioritized list of normalized data sources. When the preferred source becomes unavailable or the data quality transitions to an unacceptable state, the IDS switches to the next highest priority normalized data source.

The IDS may also perform customized computations a per-consumer basis. Example computations include constructing user-defined Virtual Order Books, computing basket computations, computing options prices (and implied volatilities) and generating user-defined Best Bid and Offer (BBO) quotes (see the above-referenced and incorporated U.S. Pat. Nos. 7,840,482 and 7,921,046, U.S. Pat. App. Pub. 2009/0182683, and WO Pub. WO 2010/077829 for examples of hardware-accelerated processing modules for such tasks). By performing these functions in an IDS at the “edge” of the distribution network allows the functions to be customized on a per consumer basis. Note that a ticker plant distributing data to hundreds of consumers may not have the processing capacity to perform hundreds of customized computations, one for each consumer. Examples of other customized per consumer computations include: liquidity target Net Asset Value (NAV) computations, future/spot price transformations, and currency conversions.

Additionally, the IDS may host one or more of the low latency data distribution functions described in the above-referenced and incorporated U.S. Pat. App. Ser. No. 61/570,670. In one embodiment, the IDS may perform all of the functions of an Edge Cache. In another embodiment, the IDS may perform all of the functions of a Connection Multiplexer. As such, the IDS includes at least one instance of a multi-class distribution engine (MDE) that includes some permutation of Critical Transmission Engine, Adaptive Transmission Engine, or Metered Transmission Engine.

Like the customized per consumer computations, the IDS may also perform per consumer protocol bridging. For example, the upstream connection from the IDS to a ticker plant may use a point-to-point Remote Direct Memory Access (RDMA) protocol. The IDS may be distributing data to a set of consumers via point-to-point connections using the Transmission Control Protocol (TCP) over Internet Protocol (IP), and distributing data to another set of consumers via a proprietary reliable multicast protocol over Unreliable Datagram Protocol (UDP).

1. Low Overhead Communication Protocols:

Note that if intelligent FPGA NICs are used in the consuming machines, then a direct FPGA-to-FPGA wire path exists between FPGA in the Switch and the FPGA in the NIC. This eliminates the need for Ethernet frame headers, IP headers, CRCs, inter-frame spacing and other overhead, and allows the FPGA in the switch to communicate directly with the FPGA in the NIC, without being constrained to specific communication protocols.

D. Non-Financial Embodiments

It should be understood that the offload processing techniques described herein can also be applied to data other than financial market data. For example, the packet reorganization techniques described in connection with FIGS. 3-6 can be applied to one more data feeds of non-financial data. FIGS. 29-32 illustrate such non-financial examples.

In the embodiment of FIG. 29, data packets from a plurality of data feeds arrive on an input link to the offload processor, and the offload processor 300 is configured to provide consumer-specific repackaging of the incoming data packets. Thus, however the messages of the incoming packets may have been organized, the outgoing packets can organize the messages on a consumer-specific or other basis. Moreover, it should be understood that the incoming data packets may correspond to only a single data feed.

FIG. 30 depicts an embodiment where the offload processor 300 receives multiple incoming data feeds on multiple input links and provides repackaging for a single output link.

FIG. 31 depicts an embodiment where the offload processor 300 receives one or more data feeds on a single input link and provides repackaging for multiple output links.

FIG. 32 depicts an embodiment where the offload processor 300 receives multiple incoming data feeds on multiple input links and provides repackaging for a multiple output links.

Examples of nonfinancial data feeds could be data feeds such as those from social networks (e.g., a Twitter data feed, a Facebook data feed, etc.), content aggregation feeds (e.g., RSS feeds), machine-readable news feeds, and others.

FIG. 33 depicts how the offload processor 300 can deliver the outgoing reorganized data packets to a plurality of different data consumers.

The offload processor 300 can take the form of an intelligent feed switch 3400, similar to as described above. Such a switch 3400 can reside in a data distribution network. The intelligent feed switch 3400 can be configured to provide any of a number of data processing operations on incoming messages within the data packets of the one or more incoming data feeds. In exemplary embodiments, these data processing operations can be hardware-accelerated data processing operations. Examples of hardware-accelerated data processing operations that can be performed include data processing operations such as data searching, regular expression pattern matching, approximate pattern matching, encryption/decryption, compression/decompression, rule processing, data indexing, and others, such as those disclosed by U.S. Pat. Nos. 6,711,558, 7,139,743, 7,636,703, 7,702,629, 8,095,508 and U.S. Pat. App. Pubs. 2007/0237327, 2008/0114725, 2009/0060197, and 2009/0287628, the entire disclosures of each of which being incorporated herein by reference. As previously noted, examples of suitable hardware acceleration platforms can include reconfigurable logic (e.g., FPGAs) and GPUs.

In an exemplary embodiment, the different data consumers may have a desire to monitor one or more data feeds for data of interest. For example, a consumer may be interested in being notified of or receiving all messages in a data feed that include a particular company name, person's name, sports team, and/or city. Moreover, different data consumers would likely have varying interests with regard to such monitoring efforts. The intelligent feed switch can be configured to perform search operations on the messages in one or more data feeds to find all messages which include data that matches one or more search terms. The messages that match the terms for a given data consumer can then be associated with that data consumer, and the intelligent feed switch can direct such messages to the interested data consumer. FIG. 35 illustrates a process flow for such an operation. The intelligent feed switch can implement hardware-accelerated search capabilities as described in the above-referenced and incorporated patents and patent applications to implement the process flow of FIG. 35.

In another exemplary embodiment, different consumers may want different messages of interest to them encrypted in a certain fashion. Such encryption operations can also be implemented in the intelligent feed switch, preferably as hardware-accelerated encryption.

In yet another exemplary embodiment, different consumers may desire different data normalization/quality checking operations be performed on messages of interest to them. Once again, such operations could be implemented in the intelligent feed switch on a consumer-specific basis.

While the present invention has been described above in relation to exemplary embodiments, various modifications may be made thereto that still fall within the invention's scope, as would be recognized by those of ordinary skill in the art. Such modifications to the invention will be recognizable upon review of the teachings herein. As such, the full scope of the present invention is to be defined solely by the appended claims and their legal equivalents. 

What is claimed is:
 1. A method comprising: receiving a plurality of incoming feed-specific data packets via at least one port of a switch, the incoming feed-specific data packets corresponding to a plurality of different data feeds, the incoming feed-specific data packets comprising a plurality of messages, the messages comprising message data, the switch comprising (1) a plurality of ports, (2) switching logic, and (3) a processor, wherein the switching logic and processor are co-resident within the switch; analyzing, by the processor, the message data of the messages on a data consumer-specific basis; repacketizing, by the processor, the messages into a plurality of outgoing data consumer-specific data packets based on the analyzing step; determining, by the switching logic, at least one of the ports for a plurality of outgoing data consumer-specific data packets with reference to the incoming data packets; and outputting the outgoing data consumer-specific data packets via the determined at least one port.
 2. The method of claim 1 wherein the analyzing step comprises the processor performing a plurality of data consumer-specific search operations on the message data with respect to a plurality of search terms, the search terms being associated with the data consumers to find message data of interest to the data consumers.
 3. The method of claim 2 wherein the search operations comprise at least one member of the group consisting of an exact matching operation, an approximate match operation, and a regular expression pattern match operation.
 4. The method of claim 2 further comprising the processor, based on the search operations, storing the message data found to be of interest to the data consumers in a plurality queues, each queue being associated with a data consumer such that the message data found to be of interest to a particular data consumers is stored in the queue associated with that data consumer.
 5. The method of claim 4 wherein the repacketizing step comprises the processor generating the outgoing data packets from commonly-queued message data.
 6. The method of claim 5 wherein the repacketizing step comprises the processor (1) selecting a queue from which to generate an outgoing data packet, (2) accessing packaging parameter data that is associated with the selected queue, and (3) generating an outgoing data packet from message data in the selected queue in accordance with the accessed packaging parameter data.
 7. The method of claim 1 further comprising the processor encrypting at least a portion of the messages.
 8. The method of 7 wherein the encrypting step comprises the processor performing different data consumer-specific encryption operations on the message data.
 9. The method of claim 1 further comprising the processor normalizing at least a portion of the messages.
 10. The method of claim 9 wherein the normalizing step comprises the processor performing different data consumer-specific normalization operations on the message data.
 11. The method of claim 1 wherein the data feeds include at least one social network data feed.
 12. The method of claim 1 wherein the data feeds include at least one content aggregation feed.
 13. The method of claim 1 wherein the data feeds include at least one machine-readable news feed.
 14. The method of claim 1 further comprising: the switch performing a protocol transformation to generate the outgoing data packets such that the outgoing data packets exhibit a different protocol than the received data packets.
 15. The method of claim 1 wherein the processor comprises a field programmable gate array (FPGA), the FPGA comprising pipelined firmware logic, the pipelined firmware logic performing the analyzing and repacketizing steps in parallel with respect to successively received incoming data packets.
 16. The method of claim 1 wherein the switching logic is resident on the processor.
 17. The method of claim 1 wherein the processor comprises a field programmable gate array (FPGA).
 18. The method of claim 17 wherein the switching logic is resident on another FPGA.
 19. The method of claim 18 further comprising the FPGAs communicating with each other via a member of the group consisting of (1) a custom interface, (2) a PCI-express interface, (3) a XAUI interface, and (4) an Ethernet interface.
 20. The method of claim 1 wherein the switching logic is resident on an application specific integrated circuit (ASIC).
 21. The method of claim 20 wherein the processor comprises a field programmable gate array (FPGA), the method further comprising the ASIC and the FPGA communicating with each other via a member of the group consisting of (1) a custom interface, (2) a PCI-express interface, (3) a XAUI interface, and (4) an Ethernet interface.
 22. The method of claim 1 wherein the processor comprises at least one member of the group consisting of a reconfigurable logic device, a graphics processor unit (GPU), and a chip multi-processor (CMP).
 23. The method of claim 1 wherein at least a plurality of the received data packets comprise transmission control protocol (TCP) data packets, the method further comprising the processor performing a TCP termination on at least a plurality of the received TCP data packets. 